PHY START

Used to initialise the physics engine.

  Syntax
PHY START
PHY START simulationType, simulationSceneType, simulationFlags
  Parameters
simulationType
Integer
is used to specify whether the simulation will run in software or hardware, to use software mode specify 0 and to use hardware mode specify 1
simulationSceneType
Integer
controls what kind of scene will be used, 0 represents a rigid body scene, 1 represents a fluid scene, 2 represents a fluid scene in software and 3 represents a cloth scene
simulationFlags
Integer
use a value of 1 to enable multi threading

  Returns

  Description

The command Phy start must be called before attempting to use any other physics command ( with the exception of debug commands such as phy enable debug ). Failure to do this will result in runtime errors when calling physics commands.

The option to choose the placement of this command can be useful for resource management. Examples of this include having a game which starts off with several menu screens. When these screens are displayed it is not necessary to have initialised the physics engine and have it running as it is not in use. So in this case it may be preferable to call phy start after the menu screens have been displayed and at the time of setting up and entering the game level. Alternatively you may simply like to place the call to phy start at the beginning of your program and have it ready and waiting for use right from the offset.

Note that the parameters for phy start are optional so you can simply call phy start passing in no parameters if you choose.

  Example Code
No example code is provided for this command